﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UDPServer
{
    public class QyData
    {
        //设备名称
        public String devname { get; set; }
        //指令单
        public String ic { get; set; }
        //货号
        public String artno { get; set; }
        //颜色
        public String color { get; set; }
        //部件名称
        public String process { get; set; }
        //指令单
        public String partsname { get; set; }
        //指令单
        public String ordertype { get; set; }
        //指令单
        public String size { get; set; }
        //指令单
        public String count { get; set; }
        //指令单

        public String starttime { get; set; }
        //指令单
        public String complatetime { get; set; }
         

        public List<Jdata> toJdatas()
        {
            List<Jdata> jdatas = new List<Jdata>(10);
            Jdata jd = new Jdata();
            jd.k = devname+ ".ic";
            jd.v = ic;
            jdatas.Add(jd);

            Jdata jd1 = new Jdata();
            jd1.k = devname + ".artno";
            jd1.v = artno;
            jdatas.Add(jd1);

            Jdata jd2 = new Jdata();
            jd2.k = devname + ".color";
            jd2.v = color;
            jdatas.Add(jd2);

            Jdata jd3 = new Jdata();
            jd3.k = devname + ".process";
            jd3.v = process;
            jdatas.Add(jd3);


            Jdata jd4 = new Jdata();
            jd4.k = devname + ".partsname";
            jd4.v = partsname;
            jdatas.Add(jd4);


            Jdata jd5 = new Jdata();
            jd5.k = devname + ".ordertype";
            jd5.v = ordertype;
            jdatas.Add(jd5);

            Jdata jd6 = new Jdata();
            jd6.k = devname + ".size";
            jd6.v = size;
            jdatas.Add(jd6);


            Jdata jd7 = new Jdata();
            jd7.k = devname + ".count";
            jd7.v = count;
            jdatas.Add(jd7);

            Jdata jd8 = new Jdata();
            jd8.k = devname + ".starttime";
            jd8.v = starttime;
            jdatas.Add(jd8);

            Jdata jd9 = new Jdata();
            jd9.k = devname + ".complatetime";
            jd9.v = complatetime;
            jdatas.Add(jd9);

            return jdatas;
        }

    }
}
